home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 8823 / 8823.xpi / chrome / omnibar / content / bindings.xml next >
Extensible Markup Language  |  2009-09-05  |  3KB  |  68 lines

  1. <?xml version="1.0"?>
  2.  
  3.  
  4. <bindings id="omnibarBindings"
  5.           xmlns="http://www.mozilla.org/xbl"
  6.           xmlns:html="http://www.w3.org/1999/xhtml"
  7.           xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  8.           xmlns:xbl="http://www.mozilla.org/xbl">
  9.   <binding id="urlbbar" extends="chrome://browser/content/urlbarBindings.xml#urlbar">
  10.     <implementation>
  11.       
  12.     </implementation>
  13.   </binding>
  14.   <binding id="urlbar-rich-result-popup" extends="chrome://browser/content/urlbarBindings.xml#urlbar-rich-result-popup">
  15.     <implementation>
  16.       <method name="openAutocompletePopup">
  17.         <parameter name="aInput"/>
  18.         <parameter name="aElement"/>
  19.         <body>
  20.           <![CDATA[
  21.           // copy from superclass
  22.           // initially the panel is hidden
  23.           // to avoid impacting startup / new window performance
  24.           aInput.popup.hidden = false;
  25.  
  26.           // this method is defined on the base binding
  27.           this._openAutocompletePopup(aInput, aElement);
  28.           var controller = aInput.controller;
  29.           if(controller.searchString === controller.getValueAt(0)) {
  30.             this.selectedIndex = 0;
  31.           }
  32.         ]]>
  33.         </body>
  34.       </method>
  35.     </implementation>
  36.   </binding>
  37.  
  38.   <binding id="autocomplete-richlistitem" extends="chrome://global/content/bindings/autocomplete.xml#autocomplete-richlistitem">
  39.     <content>
  40.       <xul:hbox align="left" flex="1">
  41.         <xul:image xbl:inherits="src=image" class="ac-site-icon"/>
  42.         <xul:hbox anonid="url-box" class="ac-url" flex="1"
  43.                   onunderflow="_doUnderflow('_url');">
  44.           <xul:description anonid="url" class="ac-normal-text ac-url-text" xbl:inherits="selected"/>
  45.         </xul:hbox>
  46.         <xul:label anonid="url-overflow-ellipsis" xbl:inherits="selected" 
  47.                    class="ac-ellipsis-after ac-url-text" hidden="true"/>
  48.         <xul:spacer class="ac-type-icon"/>
  49.       </xul:hbox>
  50.       <xul:hbox align="left" width="300px">
  51.         <xul:hbox anonid="title-box" class="ac-title" flex="1"
  52.                   onunderflow="_doUnderflow('_title');">
  53.           <xul:description anonid="title" class="ac-normal-text ac-comment" xbl:inherits="selected"/>
  54.           <xul:hbox anonid="extra-box" class="ac-extra" align="center" hidden="true">
  55.             <xul:image class="ac-result-type-tag"/>
  56.             <xul:description anonid="extra" class="ac-normal-text ac-comment" xbl:inherits="selected"/>
  57.           </xul:hbox>
  58.         </xul:hbox>
  59.         <xul:label anonid="title-overflow-ellipsis" xbl:inherits="selected"
  60.                    class="ac-ellipsis-after ac-comment" hidden="true"/>
  61.         <xul:image anonid="type-image" class="ac-type-icon"/>
  62.       </xul:hbox>
  63.     </content>
  64.     <implementation>
  65.     </implementation>
  66.   </binding>
  67. </bindings>
  68.